import { _decorator, Component, Node, tween, Vec3 } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('FailUI')
export class FailUI extends Component {
  
    failImageNode: Node;
    protected start(): void {
        this.failImageNode=this.node.getChildByName("FailImage");
    }
    show(){
        this.failImageNode.active=true;
        tween(this.failImageNode).to(1, {scale:new Vec3(1,1,0)}).start();
    }
    hide(){
        this.failImageNode.active=false;
    }
}   


